package d1211.r211.num16;

import java.util.Scanner;

public class c1c2 {
    static Scanner sc=new Scanner(System.in);
    public static void main(String[] args) {
        System.out.println("输入两个数");

        double num1= sc.nextDouble();
        double num2= sc.nextDouble();
        System.out.println(addNum(num1,num2));
        equal(num1,num2);

    }

    private static void equal(double num1,double num2) {
        if (num1==num2){
            System.out.println("相等");
        }
        System.out.println("不相等");

    }

    private static double addNum(double num1, double num2) {
      double sum=num1+num2;
      return sum;

    }


}
